package Q1;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        long a = scanner.nextLong();
        long b = scanner.nextLong();

        long num1 = a;
        long num2 = b;

        if (a < b) {
            long temp = a;
            a = b;
            b = temp;
        }

        long c = a % b;
        while (c > 0) {
            a = b;
            b = c;
            c = a % b;
        }

        System.out.println(num1 * num2 / b);
    }
}

